package com.zzh.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zzh.mapper.EbProductMapper;
import com.zzh.model.EbProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EbProductService {
    @Autowired
    private EbProductMapper ebProductMapper;
public Page<EbProduct> list(int psize, int limit){
    Page<EbProduct> page = new Page(psize,limit);
    return ebProductMapper.selectPage(page,null);
}

public  EbProduct detail(int epId){
    return ebProductMapper.selectById(epId);
}
}
